<?php include CN_APPLICATION_PATH . 'application/htmlincludes/form-header.php';?>
</head>
<body>
	<header id ="top">
		<h1>
			<?php if(getQueryVar('id')) : ?>
				Edit
			<?php else : ?>
				Add
			<?php endif;?>
			 <?=DB()->getVar("SELECT `ct_title` FROM `cn_content_types` WHERE `ct_id`='".getQueryVar('type')."'");?>
		</h1>
	</header>
	<?php displayFormMessages();?>
	<?php if(!formSuccess()) : ?>
	<?php openForm();?>
	
	<?php defaultLayout();?>
	<?php submitButton('Submit');?>
	<?php closeForm();?>
	<?php endif;?>
</body>
</html>